class LoginResponse {
  late int code;
  late Data data;
  late String msg;

  LoginResponse({required this.code, required this.data, required this.msg});

  LoginResponse.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    data = (json['data'] != null ? new Data.fromJson(json['data']) : null)!;
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;

    data['data'] = this.data.toJson();

    data['msg'] = this.msg;
    return data;
  }
}

class Data {
  late String mobile;
  late String accessToken;

  Data({required this.mobile, required this.accessToken});

  Data.fromJson(Map<String, dynamic> json) {
    mobile = json['mobile'];
    accessToken = json['access_token'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['mobile'] = this.mobile;
    data['access_token'] = this.accessToken;
    return data;
  }
}
